//
//  ApplicitonClass.h
//  斗鸡TV
//
//  Created by admin on 16/9/14.
//  Copyright © 2016年 admin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol LoadHttpDataDelegate <NSObject>

-(void)successWithResponse:(id)response;
-(void)failedWithResponse:(id)request Error:(NSError *)error;

@end

@interface ApplicitonClass : NSObject


+ (instancetype)getInstance;
@property(weak,nonatomic) id <LoadHttpDataDelegate> delegate;
@property (nonatomic,assign)BOOL isflag;

- (UIInterfaceOrientationMask)interfaceOrientationMask;

-(void)httpGetUrl:(NSString *)urlStr params:(NSDictionary *)params;
-(void)httpPOSTUrl:(NSString *)urlStr params:(NSDictionary *)params;
@end
